<%@ page import="org.knowlege.Knowlege" %>



<div class="fieldcontain ${hasErrors(bean: knowlegeInstance, field: 'product', 'error')} required">
	<label for="product">
		<g:message code="knowlege.product.label" default="Product" />
		<span class="required-indicator">*</span>
	</label>
	<span style="font-size:1.5em;">${knowlegeInstance?.product}</span>
	<g:hiddenField name="product.id" value="${knowlegeInstance?.product?.id}" />
	
	<label for="knowlegeType">
		<g:message code="knowlege.knowlegeType.label" default="Knowlege Type" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="knowlegeType" name="knowlegeType.id" from="${org.knowlege.KnowlegeType.list()}" optionKey="id" required="" value="${knowlegeInstance?.knowlegeType?.id}" class="many-to-one"/>
	
</div>

<div class="fieldcontain ${hasErrors(bean: knowlegeInstance, field: 'content', 'error')} ">
	<g:textArea name="content" cols="40" rows="5" value="${knowlegeInstance?.content}"/>
	<script type="text/javascript">
		var oFCKeditor = new FCKeditor('content') ;  
		oFCKeditor.BasePath = "<%= request.getContextPath()%>/js/FCKeditor/";  
		oFCKeditor.ToolbarSet = 'Default';  
		//oFCKeditor.Width = '100%';  
		oFCKeditor.Height = '400';  
		oFCKeditor.Value = '' ;  
		oFCKeditor.ReplaceTextarea();
	</script>
</div>

<g:textField name="createUser" value="${knowlegeInstance?.createUser}"/>
